<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 核心中文语言包
return [
    // 系统错误提示
    'Undefined variable'                                        => 'Undefined variable',
    'Undefined index'                                           => 'Undefined array index',
    'Undefined offset'                                          => 'Undefined array index',
    'Parse error'                                               => 'Grammar parsing error',
    'Type error'                                                => 'error in type',
    'Fatal error'                                               => 'fatal error',
    'syntax error'                                              => 'Syntax error',

    // 框架核心错误提示
    'dispatch type not support'                                 => 'Unsupported scheduling type',
    'method param miss'                                         => 'Method parameter error',
    'method not exists'                                         => 'Method does not exist',
    'function not exists'                                       => 'function does not exist',
    'file not exists'                                           => 'file does not exist',
    'module not exists'                                         => 'Module does not exist',
    'controller not exists'                                     => 'Controller does not exist',
    'class not exists'                                          => 'class does not exist',
    'property not exists'                                       => 'The property of the class does not exist',
    'template not exists'                                       => 'The template file does not exist',
    'illegal controller name'                                   => 'Illegal controller name',
    'illegal action name'                                       => 'Illegal operation name',
    'url suffix deny'                                           => 'Prohibited URL Suffix Access',
    'Route Not Found'                                           => 'The current access route is undefined or does not match',
    'Undefined db type'                                         => 'Undefined database type',
    'variable type error'                                       => 'Variable type error',
    'PSR-4 error'                                               => 'PSR-4 Normative error',
    'not support total'                                         => '简洁模式下不能获取数据总数',
    'not support last'                                          => '简洁模式下不能获取最后一页',
    'error session handler'                                     => '错误的SESSION处理器类',
    'not allow php tag'                                         => '模板不允许使用PHP语法',
    'not support'                                               => '不支持',
    'redisd master'                                             => 'Redisd 主服务器错误',
    'redisd slave'                                              => 'Redisd 从服务器错误',
    'must run at sae'                                           => '必须在SAE运行',
    'memcache init error'                                       => '未开通Memcache服务，请在SAE管理平台初始化Memcache服务',
    'KVDB init error'                                           => '没有初始化KVDB，请在SAE管理平台初始化KVDB服务',
    'fields not exists'                                         => '数据表字段不存在',
    'where express error'                                       => '查询表达式错误',
    'order express error'                                       => '排序表达式错误',
    'no data to update'                                         => '没有任何数据需要更新',
    'miss data to insert'                                       => '缺少需要写入的数据',
    'not support data'                                          => '不支持的数据表达式',
    'miss complex primary data'                                 => '缺少复合主键数据',
    'miss update condition'                                     => '缺少更新条件',
    'model data Not Found'                                      => '模型数据不存在',
    'table data not Found'                                      => '表数据不存在',
    'delete without condition'                                  => '没有条件不会执行删除操作',
    'miss relation data'                                        => '缺少关联表数据',
    'tag attr must'                                             => '模板标签属性必须',
    'tag error'                                                 => '模板标签错误',
    'cache write error'                                         => '缓存写入失败',
    'sae mc write error'                                        => 'SAE mc 写入错误',
    'route name not exists'                                     => '路由标识不存在（或参数不够）',
    'invalid request'                                           => '非法请求',
    'bind attr has exists'                                      => '模型的属性已经存在',
    'relation data not exists'                                  => '关联数据不存在',
    'relation not support'                                      => '关联不支持',
    'chunk not support order'                                   => 'Chunk不支持调用order方法',
    'route pattern error'                                       => '路由变量规则定义错误',
    'route behavior will not support'                           => '路由行为废弃（使用中间件替代）',
    'closure not support cache(true)'                           => '使用闭包查询不支持cache(true)，请指定缓存Key',

    // 上传错误信息
    'unknown upload error'                                      => 'Unknown upload error！',
    'file write error'                                          => 'File write failure！',
    'upload temp dir not found'                                 => 'Unable to find temporary folder！',
    'no file to uploaded'                                       => 'No files uploaded！',
    'only the portion of file is uploaded'                      => 'Only part of the file has been uploaded！',
    'upload File size exceeds the maximum value'                => 'The uploaded file size exceeds the maximum value！',
    'upload write error'                                        => 'File upload and save error！',
    'has the same filename: {:filename}'                        => 'A file with the same name exists：{:filename}',
    'upload illegal files'                                      => 'Illegal file upload',
    'illegal image files'                                       => 'Illegal image file',
    'extensions to upload is not allowed'                       => 'Uploading file suffix not allowed',
    'mimetype to upload is not allowed'                         => 'Upload file MIME type not allowed！',
    'filesize not match'                                        => 'Upload file size mismatch！',
    'directory {:path} creation failed'                         => 'directory {:path} Creation failed！',

    'The middleware must return Response instance'              => '中间件方法必须返回Response对象实例',
    'The queue was exhausted, with no response returned'        => '中间件队列为空',
    // Validate Error Message
    ':attribute require'                                        => ':attribute cannot be empty',
    ':attribute must'                                           => ':attribute must',
    ':attribute must be numeric'                                => ':attribute must be a number',
    ':attribute must be integer'                                => ':attribute must be an integer',
    ':attribute must be float'                                  => ':attribute must be a floating-point number',
    ':attribute must be bool'                                   => ':attribute must be a Boolean value',
    ':attribute not a valid email address'                      => ':attribute format mismatch',
    ':attribute not a valid mobile'                             => ':attribute format mismatch',
    ':attribute must be a array'                                => ':attribute must be an array',
    ':attribute must be yes,on or 1'                            => ':attribute must be yes, on, or 1',
    ':attribute not a valid datetime'                           => ':attribute not a valid date or time format',
    ':attribute not a valid file'                               => ':attribute not a valid uploaded file',
    ':attribute not a valid image'                              => ':attribute not a valid image file',
    ':attribute must be alpha'                                  => ':attribute it can only be letters',
    ':attribute must be alpha-numeric'                          => ':attribute it can only be letters and numbers',
    ':attribute must be alpha-numeric, dash, underscore'        => ':attribute can only be letters, numbers, and underscores_ And dash-',
    ':attribute not a valid domain or ip'                       => ':attribute not a valid domain name or IP',
    ':attribute must be chinese'                                => ':attribute it can only be Chinese characters',
    ':attribute must be chinese or alpha'                       => ':attribute can only be Chinese characters or letters',
    ':attribute must be chinese,alpha-numeric'                  => ':attribute can only be Chinese characters, letters, and numbers',
    ':attribute must be chinese,alpha-numeric,underscore, dash' => ':attribute can only be Chinese characters, letters, numbers, and underscores_ And dash-',
    ':attribute not a valid url'                                => ':attribute not a valid URL address',
    ':attribute not a valid ip'                                 => ':attribute not a valid IP address',
    ':attribute must be dateFormat of :rule'                    => ':attribute must use date format :rule',
    ':attribute must be in :rule'                               => ':attribute must be done within :rule in range',
    ':attribute be notin :rule'                                 => ':attribute cannot be in :rule in range',
    ':attribute must between :1 - :2'                           => ':attribute only in :1 - :2 between',
    ':attribute not between :1 - :2'                            => ':attribute cannot be in :1 - :2 between',
    'size of :attribute must be :rule'                          => ':attribute the length does not meet the requirements :rule',
    'max size of :attribute must be :rule'                      => ':attribute the length cannot exceed :rule',
    'min size of :attribute must be :rule'                      => ':attribute the length cannot be less than :rule',
    ':attribute cannot be less than :rule'                      => ':attribute date cannot be less than :rule',
    ':attribute cannot exceed :rule'                            => ':attribute the date cannot exceed :rule',
    ':attribute not within :rule'                               => 'Not within the validity period :rule',
    'access IP is not allowed'                                  => 'IP access not allowed',
    'access IP denied'                                          => 'Prohibited IP access',
    ':attribute out of accord with :2'                          => ':attribute and confirmation fields:2 inconsistent',
    ':attribute cannot be same with :2'                         => ':attribute and confirmation fields:2 inconsistent',
    ':attribute must greater than or equal :rule'               => ':attribute must be greater than or equal to :rule',
    ':attribute must greater than :rule'                        => ':attribute must be greater than :rule',
    ':attribute must less than or equal :rule'                  => ':attribute must be less than or equal to :rule',
    ':attribute must less than :rule'                           => ':attribute must be less than :rule',
    ':attribute must equal :rule'                               => ':attribute must be equal to :rule',
    ':attribute has exists'                                     => ':attribute already exists',
    ':attribute not conform to the rules'                       => ':attribute Not in compliance with specified rules',
    'invalid Request method'                                    => 'Invalid request type',
    'invalid token'                                             => 'Token data is invalid',
    'not conform to the rules'                                  => 'Rule error',
];
